const https = require("https");


https.get("https://www.baidu.com/",function(response){
    response.on("data",function(result){
        console.log(result.toString())
    })
    response.on("error",function(error){
        console.log(error)
    })
})